package Solutions;

public class Solution {
    public static void main(String[] args) {
        int[] arr=new int[]{12,11,10,6,5,8};
        int target = 16;
        Num(arr,target);
    }

      public static void Num(int[] num,int target){
        for (int i=0;i<num.length;i++){
            for (int j=i+1;j<num.length-1;j++){
                if (num[i]+num[j]==target){
                    System.out.println(num[i]+num[j]);
                }
            }
        }

    }

}
